package cn.kgc.tangcco.action;

import cn.kgc.tangcco.moudle.ResultCode;
import cn.kgc.tangcco.service.UserService;

import java.util.Map;

/**
 * @author 李昊哲
 * @Description
 * @create 2020/8/31 下午12:26
 */
public class UserAction {
    public void login(){
        UserService userService = new UserService();
        Map<String, Object> map = userService.loging("admin", "123456");
        ResultCode resultCode = (ResultCode) map.get("resultCode");
        switch (resultCode.getCode()) {
            case 50001: {
                System.out.println(resultCode.getMsg());
            }
        }
    }

    public static void main(String[] args) {
        UserAction userAction = new UserAction();
        userAction.login();
    }
}
